Tegra: T210: include CPU files from SoC's platform.mk
authorVarun Wadekar <[email protected]>
Tue, 21 Jul 2015 06:23:35 +0000 (11:53 +0530)
committerVarun Wadekar <[email protected]>
Fri, 24 Jul 2015 03:38:27 +0000 (09:08 +0530)
This patch moves the inclusion of CPU code (A53, A57) to T210's
makefile. This way we can reduce code size for Tegra platforms by
including only the required CPU files.

Signed-off-by: Varun Wadekar <[email protected]>
plat/nvidia/tegra/common/tegra_common.mk
plat/nvidia/tegra/soc/t210/platform_t210.mk

index b88742a8d3556f148a2c07d27979d38f8f6c52ea..e1c0d84d641829247ab70fe6f9f400d1ae86497c 100644 (file)
@@ -50,8 +50,6 @@ BL31_SOURCES          +=      drivers/arm/gic/gic_v2.c                        \
                                drivers/console/console.S                       \
                                drivers/delay_timer/delay_timer.c               \
                                drivers/ti/uart/16550_console.S                 \
-                               lib/cpus/aarch64/cortex_a53.S                   \
-                               lib/cpus/aarch64/cortex_a57.S                   \
                                plat/common/aarch64/platform_mp_stack.S         \
                                ${COMMON_DIR}/aarch64/tegra_helpers.S           \
                                ${COMMON_DIR}/drivers/memctrl/memctrl.c         \
index 003b48960d0cf67f917ee4c09e119f589808114f..ca7718c88864a12938acf736de0def6872babd48 100644 (file)
@@ -46,8 +46,10 @@ $(eval $(call add_define,PLATFORM_CLUSTER_COUNT))
 PLATFORM_MAX_CPUS_PER_CLUSTER          := 4
 $(eval $(call add_define,PLATFORM_MAX_CPUS_PER_CLUSTER))
 
-BL31_SOURCES           +=      ${SOC_DIR}/plat_psci_handlers.c \
-                               ${SOC_DIR}/plat_setup.c \
+BL31_SOURCES           +=      lib/cpus/aarch64/cortex_a53.S           \
+                               lib/cpus/aarch64/cortex_a57.S           \
+                               ${SOC_DIR}/plat_psci_handlers.c         \
+                               ${SOC_DIR}/plat_setup.c                 \
                                ${SOC_DIR}/plat_secondary.c
 
 # Enable workarounds for selected Cortex-A53 erratas.